package com.qianya.oa.util;

/**
 * 后端正则表达式
 */
public class RegexpProperties {
    public static final String MOBILE_PATTERN = "(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}";//手机号
    public static final String EMAIL_PATTERN = "^$|(\\w)+(\\.\\w+)*@(\\w)+((\\.\\w+)+)$";//邮箱
    public static final String FAX_PATTERN = "^$|(\\d{3,4}-)?\\d{7,8}$";//传值
    public static final String CREDIT_CODE_PATTERN = "^$|[a-zA-Z0-9]{18}$";//社会信用代码
    public static final String VERIFICATION_CODE= "^\\d{6}$"; //6位数验证码
    public static final String IDENTITY_CARD="^\\d{15}$)|(^\\d{18}$)|(^\\d{17}(\\d|X|x)$"; //身份证
    public static final String POSTAL_CODE="[1-9]\\d{5}(?!\\d)"; //中国邮政编码
    public static final String ACCOUNT_NUMBER="^[a-zA-Z][a-zA-Z0-9_]{4,15}$"; //帐号是否合法(字母开头，允许5-16字节，允许字母数字下划线)
    public static final String STRING_RULE= "^[\\u4E00-\\u9FA5A-Za-z0-9_]+$";
    public static final String AGE_RULE= "^[0-9]*$";

}
